{include file="errors.tpl"}
{if $WEB_APP.correct_answer_message neq ""}
<div id="correct">{$WEB_APP.correct_answer_message}</div>
{/if}

{$text.txt_the_testing_is_over}<br>
{$text.txt_test}:{$WEB_APP.test_name}<br><br>

{if $WEB_APP.is_show_results_message eq 1}

	{if $WEB_APP.settings.tst_showstats}
		<h3>{$text.txt_statistics}</h3>
		{include file="table_header.tpl" columns=$WEB_APP.stat_columns}
		{include file="table_rows.tpl" items=$WEB_APP.stat columns=$WEB_APP.stat_columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.stat_columns_count}
		<br>
	{/if}
	
	{if count($WEB_APP.user_result_themes) neq 0}
		{assign var="tmp" value="1"}
		{foreach from = $WEB_APP.user_result_themes item = item name=foreach_row}
			{cycle values="line1,line2" assign="line"}
			{if $item.name eq "header"}
		
				<h3>{$item.value|escape}</h3>
				<table width = "100%">
				{assign var="tmp" value="2"}

			{else}
			<tr>
				<td td class="{$line}" width = "30%">{$item.name|escape|email}:</td>
				<td td class="{$line}" width = "70%">{$item.value}</td>
			</tr>
			{/if}
		{/foreach}
		</table>
		<br>		
	{/if}
	

	{if $WEB_APP.settings.tst_showrating}
		<h3>{$text.txt_rating}</h3>
		{include file="table_header.tpl" columns=$WEB_APP.columns}
		{include file="table_rows.tpl" items=$WEB_APP.rows columns=$WEB_APP.columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.columns_count}
	{/if}
{/if}
